/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bakenote.ui;

import org.apache.pivot.beans.BXML;
import org.apache.pivot.beans.Bindable;
import org.apache.pivot.collections.Map;
import org.apache.pivot.util.Resources;
import org.apache.pivot.wtk.*;

import java.net.URL;

/**
 *
 * @author lello
 */
public class ErrorOpenWindow extends Window implements Bindable {

	@BXML PushButton okButton;
	@BXML Label messageLabel;

	public ErrorOpenWindow() { }

	public void initialize(Map<String, Object> map, URL url, Resources rsrcs) {

		okButton.getButtonPressListeners().add(new ButtonPressListener() {

			public void buttonPressed(Button button) {
				getDisplay().getHostWindow().dispose();
			}
		});
	}

}
